package com.db.patterns.caches;

import java.util.concurrent.ConcurrentHashMap;

public class MapCache implements Cache {

	ConcurrentHashMap<String, Object> map = new ConcurrentHashMap<>();
	
	@Override
	public Object get(String key) {
		return map.get(key);
	}

	@Override
	public void put(String key, Object value) {
		map.put(key, value);
	}
}
